import {FormRuleUtil} from "@/utils";

export const TASK_EDIT = {
    BODY: {
        app: {id: null},
        cron: '',
        params: '',
        remark: '',
        state: '',
        title: '',


    },
    RULES: {
        title: FormRuleUtil.strRule('任务标题', true, 50),
        app: {id: FormRuleUtil.strRule('执行程序', true)},
        cron: FormRuleUtil.strRule('时间表达式', true),
        params: FormRuleUtil.jsonRule('任务参数', false),
        state: FormRuleUtil.strRule('运行状态', true),
        remark: FormRuleUtil.strRule('任务备注', false, 255),

    }
}
